﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Security;

namespace Agility.Web.Services
{
    public class RolesWrapper : IRolesWrapper
    {
        public bool RoleExists(string roleName)
        {
            return Roles.RoleExists(roleName);
        }

        public void CreateRole(string roleName)
        {
            Roles.CreateRole(roleName);
        }

        public void AddUserToRole(string userName, string roleName)
        {
            Roles.AddUserToRole(userName, roleName);
        }
    }

    public interface IRolesWrapper
    {
        bool RoleExists(string roleName);
        void CreateRole(string roleName);
        void AddUserToRole(string userName, string roleName);
    }
}